package edu.zut.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
import lombok.Setter;

//性别枚举
@Getter
public enum GenderEnum {

    MALE(1, "男"),
    FEMALE(2, "女");

    //实际保存到数据的字段
    @EnumValue
    private final int code;
    private final String desc;

    GenderEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

}
